import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AccessibilityModule } from './accessibility/accessibility.module';
import { CoercionModule } from './coercion/coercion.module';
import { KeyCodeModule } from './key-code/key-code.module';
import { LayoutModule } from './layout/layout.module';
import { OverlayModule } from './overlay/overlay.module';

const routes: Routes = [
  {
    path: 'coercion',
    loadChildren: () => CoercionModule
  },
  {
    path: 'layout',
    loadChildren: () => LayoutModule
  },
  {
    path: 'keyCode',
    loadChildren: () => KeyCodeModule
  },
  {
    path: 'accessibility',
    loadChildren: () => AccessibilityModule
  },
  {
    path: 'overlay',
    loadChildren: () => OverlayModule
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
